package com.zx.lc.test;


import dev.langchain4j.model.openai.OpenAiChatModel;

public class Main2 {

    public static void main(String[] args) {

        OpenAiChatModel model = OpenAiChatModel.builder()
                .baseUrl("https://platform.aitools.cfd/api/v1")
                .modelName("zhipu/glm-4-flash")
                .apiKey("sk-306e924c707540c5a9fff8e15dc7e4c2")
                .build();

        String answer = model.chat("你好，你是谁？");

        System.out.println(answer);

    }
}


